/*
 * @Author: your name
 * @Date: 2021-12-18 16:51:30
 * @LastEditTime: 2021-12-24 09:48:55
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \agricultural-production-web\src\api\Individual-bio-management\individual-migration-management\index.js
 */
import req from "@/api/axios";
export default {
  /* getQuery() {
    return req.sheepOut.get(`/facility/queryList`)
  }, */
  // 根据条件查询配种信息/breeding/v1/queryPageByCondition
  // postQueryPageByCondition() {
  //   return req.sheepOut.post(`/bion/breeding/v1/queryPageByCondition`)
  // },

  // 设施批量查询接口/bion/facility/queryList
  // getQueryList(params) {
  //   return req.sheepOut.post('/bion/facility/queryByCondition', params)
  // },
  // 根据设施id获取指定设施中的所有个体/bion/v1/bion/v1/queryBionByFacilityId/{facilityId}
  // getQueryBionByFacilityId(params) {
  //   return req.sheepOut.get(`/bion/v1/bion/v1/queryBionByFacilityId/${params}`)
  // },

  // 添加迁移记录 /bion/migrationRecord/v1/add
  // postMigrationRecordAdd(params) {
  //   return req.sheepOut.post(`/bion/migrationRecord/v1/add`, params)
  // }
  // 获取羊舍信息
  getSheepRoom(params) {
    return req.sheepOut.post(`/bion/facility/queryFacilityGroupAll`, params)
  },
  // 根据羊舍id 获取羊圈信息
  getSheepRing(sheepRoomId) {
    return req.sheepOut.get(`/bion/facility/queryByFacilityGroupId?facilityGroupId=${sheepRoomId}`)
  },
  // 根据羊圈id 获取拖拽组件的信息
  getTuoZhuai(facilityId) {
    return req.sheepOut.get(`/bion/v1/bion/v1/queryBionByFacilityId/${facilityId}`)
  },
  // 羊舍迁移
  sheepMove(params) {
    return req.sheepOut.post(`/bion/migrationRecord/v1/add`, params)
  }
}
